package com.ok.chapter13.async;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class AsyncController {

    @Autowired
    private AsyncService asyncService;

    @ResponseBody
    @GetMapping("/page")
    public String asyncPage(){
        System.out.println("请求线程名称: "+ Thread.currentThread().getName());
        return "async devtool==============";
    }
}
